/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pojo;

import java.io.Serializable;

/**
 *
 * @author A7med Kotb
 */
public class AccuracyLevels implements Serializable {

    private Integer alId;
    private int widthBy;
    private int pagesBy;
    private int depthBy;
    private int lengthBy;
    private int weightBy;
    private int formatBy;
    private int mailFormatBy;
    private int itemBy;
    private int prodCodeBy;
    private Provider provider;

    public AccuracyLevels() {
    }

    public AccuracyLevels(Integer alId) {
        this.alId = alId;
    }

    public AccuracyLevels(Integer alId, int widthBy, int pagesBy, int depthBy, int lengthBy, int weightBy, int formatBy, int mailFormatBy, int itemBy, int prodCodeBy) {
        this.alId = alId;
        this.widthBy = widthBy;
        this.pagesBy = pagesBy;
        this.depthBy = depthBy;
        this.lengthBy = lengthBy;
        this.weightBy = weightBy;
        this.formatBy = formatBy;
        this.mailFormatBy = mailFormatBy;
        this.itemBy = itemBy;
        this.prodCodeBy=prodCodeBy;
    }

    public Integer getAlId() {
        return alId;
    }

    public void setAlId(Integer alId) {
        this.alId = alId;
    }

    public int getWidthBy() {
        return widthBy;
    }

    public void setWidthBy(int widthBy) {
        this.widthBy = widthBy;
    }

    public int getPagesBy() {
        return pagesBy;
    }

    public void setPagesBy(int pagesBy) {
        this.pagesBy = pagesBy;
    }

    public int getDepthBy() {
        return depthBy;
    }

    public void setDepthBy(int depthBy) {
        this.depthBy = depthBy;
    }

    public int getLengthBy() {
        return lengthBy;
    }

    public void setLengthBy(int lengthBy) {
        this.lengthBy = lengthBy;
    }

    public int getWeightBy() {
        return weightBy;
    }

    public void setWeightBy(int weightBy) {
        this.weightBy = weightBy;
    }

    public int getFormatBy() {
        return formatBy;
    }

    public void setFormatBy(int formatBy) {
        this.formatBy = formatBy;
    }

    public int getMailFormatBy() {
        return mailFormatBy;
    }

    public void setMailFormatBy(int mailFormatBy) {
        this.mailFormatBy = mailFormatBy;
    }

    public int getItemBy() {
        return itemBy;
    }

    public void setItemBy(int itemBy) {
        this.itemBy = itemBy;
    }

    public Provider getProviders() {
        return provider;
    }

    public void setProviders(Provider providers) {
        this.provider = providers;
    }

    public int getProdCodeBy() {
        return prodCodeBy;
    }

    public void setProdCodeBy(int prodCodeBy) {
        this.prodCodeBy = prodCodeBy;
    }

    
    
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (alId != null ? alId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AccuracyLevels)) {
            return false;
        }
        AccuracyLevels other = (AccuracyLevels) object;
        if ((this.alId == null && other.alId != null) || (this.alId != null && !this.alId.equals(other.alId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "beans.AccuracyLevels[ alId=" + alId + " ]";
    }
}
